<?php
namespace App\HttpController\Common;
use App\Common\Controller\Rest;

/**
 * 为es-cms前端  导出页面配置文件
 */
class JsonConfig extends Rest
{
    public function GETIndex()
    {
        $this->response()->withAddedHeader('Content-type','application/json;charset=utf-8');
        $this->response()->write(file_get_contents(EASYSWOOLE_ROOT.'/Application/Utility/VueConfig/'.$this -> param['configName'].'.json'));
    }
}
